package com.zzyl.mapper;

import com.zzyl.dto.LoginDto;
import com.zzyl.vo.LoginVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LoginMapper {
    /**
     * 账号登录界面接口
     *
     * @param loginDto 登录信息
     * @return
     */
    @Select("select nick_name from sys_user where username = #{username} and password = #{password}")
    LoginVo login(LoginDto loginDto);
}
